package smashedapples.utils
{
	public class StructUtils
	{
		
		
		
		
		public static function createByKey( source:Array, key:String ):Struct
		{
			var struct:Struct = new Struct();
			
			for each( var item:Object in source )
			{
			
				struct.addByKey( item[ key ] as String, item )
			}
			
			return struct;
		}
		
		
		
	}
}